package com.buybuyyi.stylistcrm.resource.goods.dao.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.buybuyyi.stylistcrm.resource.goods.dao.GoodsMaterialDao;
import com.buybuyyi.stylistcrm.resource.goods.mapper.GoodsMaterialMapper;
import com.buybuyyi.stylistcrm.resource.goods.po.GoodsMaterial;

@Repository
public class GoodsMaterialDaoImpl implements GoodsMaterialDao{
	
	@Autowired
	private GoodsMaterialMapper goodsMaterialMapper;

	@Override
	public int deleteByPrimaryKey(Long id) {
		return goodsMaterialMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(GoodsMaterial record) {
		return goodsMaterialMapper.insert(record);
	}

	@Override
	public int insertSelective(GoodsMaterial record) {
		return goodsMaterialMapper.insertSelective(record);
	}

	@Override
	public GoodsMaterial selectByPrimaryKey(Long id) {
		return goodsMaterialMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(GoodsMaterial record) {
		return goodsMaterialMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(GoodsMaterial record) {
		return goodsMaterialMapper.updateByPrimaryKey(record);
	}
	
	
}